from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
import time

driver = webdriver.Chrome()
driver.maximize_window()
driver.implicitly_wait(10)
action = ActionChains(driver)

url = ["https://www.baidu.com", "https://www.jd.com"]
driver.get(url)
# search = driver.find_element_by_id("kw")
# action.send_keys_to_element(search, "python").perform()
time.sleep(5)

click_ = driver.find_element_by_id("su")
action.move_to_element(click_).perform()
time.sleep(5)

driver.quit()


